package main.test.SparkAPI.Baics.classApi.HTTPserver

object MyThirdCalculator {
  /**
   * You could omit the
      curly brackets here
   */
  val sum: (Int, Int) => Int =   _ + _
  val subtract: (Int, Int) => Int =  _ - _
  val multiply: (Int, Int) => Int =   _ * _
  val divide: (Int, Int) => Int =   _ / _
  val negate: Int => Int = subtract(0, _)
  def repeatStrNum: (String, Int) => Int = _.length * _
  def toDouble: Int => Double = _.toDouble
  def concat: (String, String) => String = _ + _
  def inverseConcat: (String, String) => String =    (s1, s2) => s2 + s1
  def myLongFunc: String=>String = s => s.reverse * s.length


}
